<%@ page contentType="text/html;charset=UTF-8" language="java"%>
<%@taglib prefix="sf" uri="http://www.springframework.org/tags/form"%>
<%@include file="/common/modle.jsp"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<html>
<head>
<meta charset="utf-8">


<script type="text/javascript">
	function Endwith() {

	}
</script>
<style type="text/css">
#selsect {
	border: 2px solid blue;
	padding: 5px;
}

option {
	font-family: Georgia;
	font-weight: 900;
}

body {
	
}
</style>
<script type="text/javascript"
	src="${pageContext.request.contextPath }/js/Birthday-Calendar.js">
	
</script>
<script src="https://apps.bdimg.com/libs/jquery/2.1.4/jquery.min.js">
</script>

</head>
<body>



	<c:if test="${waring!=null}">
		<h6>
			<font color="red">${waring}</font>
		</h6>
	</c:if>

	<%--文件上传的话需要enctype="multipart/form-data"--%>
	<sf:form
		action="${pageContext.request.contextPath }/file/fileupload.action"
		method="post" enctype="multipart/form-data">
		<%--这里设置文件上传--%>
		<div id="mydiv">
			<label>选择文本信息:</label> <input type="file" name="pictureFile">
		</div>
		<br>

		<select name="select">
			<option value="Android">安卓</option>
			<option value="javaee">javaee</option>
			<option value="javaweb">javaweb</option>
			<option value="php">php</option>
			<option value="python">python</option>
		</select>
		<br>
		<div style="width: 230px; background: #fafafa; padding: 10px;">
			<input type="submit" value="提交">
		</div>


		<!-- 用户自定义文献信息 -->
    文献标题:<input type="text">
		<br>
	关键字():<input type="text">
		<br>
	摘&nbsp;&nbsp;要:<input type="text">
		<br>
	发表时间:<input type="text">
		<br>
	支持基金:<input type="text">
		<br>
	
		<div id="queryinput">
		   <div>
				作&nbsp;者：<input id="au" type="text"  name="哈哈哈">作者单位:<input type='text' name="anut"></li>
		   </div>
		</div>
		
		<input type="button" name="add" value="添加作者栏位" />
		<input type="button" name="bt" value="show" />
	</sf:form>
	<script type="text/javascript">
	$(document).ready(function(){
		  
	        $("input[name='add']").click(function(event) {
	            $("#queryinput").append($("#queryinput div:first-child").clone(true));
	        });
	        
	        $("input[name='bt']").click(function(){
	        	 $("#au").each(function(){
	        		
	    			alert($(this).val())
	    			
	    		});
	    	});
	   
	    })
	</script>
	
</body>
</html>